#ifndef FILEPREVIEW_H
#define FILEPREVIEW_H

#include <QMainWindow>
#include <QFile>

namespace Ui {
class filepreview;
}

class filepreview : public QMainWindow
{
    Q_OBJECT

public:
    explicit filepreview(QString fileurl, QWidget *parent = nullptr);
    ~filepreview();
    void getfileurl(QString &fileurl);
    void openreadfile();
    void showtext();

private slots:
    void on_pushButton_back_clicked();

    void on_pushButton_save_clicked();

private:
    Ui::filepreview *ui;
    QFile file;
};

#endif // FILEPREVIEW_H
